<?php
	/******************************************
	 *	Partners Database Connection Utility  *
	 *										  *
	 * 	Author: Joe Morgan					  *
	 * 	Date: 05/2009						  *
	 * 										  *
	 * 	Comments:							  *
	 * 	May God be glorified through the use  *
	 *  of this website, even through the     *
	 *  weakness shown in myself as a         *
	 *  developer, a human, and a christian.  *
	 * 										  *
	 * 	In Hoc Signo Vinces					  *
	 *****************************************/

	require_once('inc/db_login.php');

	$connection = mysql_connect($db_host, $db_username, $db_password);
	if(!$connection)
	{
		die("Cold not connect to the database: <br/>". mysql_error());
	}
	
	//Select Database
	$db_select = mysql_select_db($db_database);
	
	// dbPartners Class for querying partners database
	class dbPartners
	{
		var $partners;
		
		
		function get_partners()
		{
			$queryGetPartners = ' SELECT ' .
								' * ' . 
								' FROM' .
								' partners ';
			
			$partners = mysql_query($queryGetPartners);
			if ( !$partners )
			{
				die("Could not query the database: <br/>".mysql_error());
			}
			
			return $partners;
		}
	}
	
?>